<!--
 * @Autor: 黄旗
 * @Date: 2020-07-17 09:00:14
-->
<template>
    <CheckboxGroup v-show="params.show ? params.show.show : true" v-model="params.value" @on-change="$emit('on-change', $event)">
        <Checkbox
            :size="params.size"
            v-show="!it.show"
            :disabled="params.disabled"
            :border="params.border"
            v-for="it in params.childList"
            :label="params.field && params.field.value ? it[params.field.value] : it.value"
            :key="params.field && params.field.value ? it[params.field.value] : it.value">
        <span>{{ params.field && params.field.label ? it[params.field.label] : it.label }}</span>
        </Checkbox>
    </CheckboxGroup>
</template>

<script>
export default {
  props: ["params"],
};
</script>
